<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="teacherList" checkbox="false" fitColumns="true" title="教师表" actionUrl="teachExpScoreController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   
   
   <t:dgCol title="教师"  field="courseSchedule.teacher.realName"    queryMode="single"  width="120"></t:dgCol>
   
   <t:dgCol title="课程名称"  field="courseSchedule.lessonInfo.lessonName"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="实验名称"  field="courseSchedule.teachItem.itemName"   queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="实验日期"  field="courseSchedule.courseDate"   formatter="yyyy-MM-dd"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="实验室"  field="courseSchedule.lab.name"    queryMode="single"  width="120"></t:dgCol> 
   <t:dgCol title="评分"  field="teacherScore"    queryMode="single"  width="120"></t:dgCol> 
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgFunOpt  funname="uploadRpt(id)" title="评分" exp="teacherScore#empty#true"/>   
  </t:datagrid>
  </div>
</div>
<script type="text/javascript"> 


 	function uploadRpt(id){
 		 $.dialog({
			  	id:'xxx',
				content: 'url:teachExpScoreController.do?goUpdate&id='+id,
				lock : true,
				zIndex: getzIndex(), 
				parent:frameElement.api,
				width:480,
				height:250,
				title:'对教师进行评分', 
				opacity : 0.3,
				cache:false,
			    ok: function(){
			    	var iframe = this.iframe.contentWindow; 
			    	$('#btn_sub', iframe.document).click();
			    	return false;
			    },
			    cancelVal: '关闭',
			    cancel: true /*为true等价于function(){}*/
		});
 	}
 
 </script>